package team.tinavv.ssheasy.core.dao;

import java.util.List;
import java.util.Map;

import org.springframework.jdbc.core.JdbcTemplate;

public class BaseJdbcDao {

	private JdbcTemplate jdbcTemplate;

	public List<Map<String, Object>> findBySql(String sql) {
		return jdbcTemplate.queryForList(sql);
	}

	public void execute(String sql) {
		jdbcTemplate.execute(sql);
	}

	public JdbcTemplate getJdbcTemplate() {
		return jdbcTemplate;
	}

	public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {
		this.jdbcTemplate = jdbcTemplate;
	}

}
